﻿!!! 1.1
%html{xmlns="http://www.w3.org/1999/xhtml"}
  -var url_c = ViewData["Controller"] as string
  -var url_a = ViewData["Action"] as string
  %head
    %title=(ViewData["Base"].ToString().ToLower().IndexOf("front") == -1 && ViewData["Base"].ToString().ToLower().IndexOf("mosnot.ru") == -1) ? "Табеллион-BackOffice" : "Табеллион" 
    ="<base href=\"" + ViewData["Base"] + "\" />"
    %link{rel="stylesheet",href="css/master.css",type="text/css"}
    -if(ViewData.ContainsKey("styles"))
      -foreach(string style in ViewData["styles"] as List<string>)
        -var href = style.StartsWith("../") ? style.Remove(0,3) : "css/"+style
        %link{rel="stylesheet",href=string.Format("{0}",href),type="text/css"}
    ="<!--[if lte IE 6]> <link rel=\"stylesheet\" href=\"css/ie6.css\" type=\"text/css\" media=\"screen\" /> <![endif]-->"
    %link{rel="icon",href="favicon.ico",type="image/x-icon"}
    _globaljs
  %body
    _user
    #container
      #header
        -if(user!=null)
          -if(user is User)
            _menu
          -if(user is Person)
            _menuc
      _submenu
      #wrapper
        _
      -if (user!=null)
        _footer
  %script{src="js/jquery-1.3.2.min.js",type="text/javascript"}
  %script{src="js/jquery.hotkeys.js",type="text/javascript"}
  %script{src="js/jquery.bgiframe.pack.js",type="text/javascript"}
  %script{src="js/jquery.date.js",type="text/javascript"}
  %script{src="js/jquery.calendar.js",type="text/javascript"}
  %script{src="js/jquery.include.js",type="text/javascript"}
  %script{src="js/common.js",type="text/javascript"}
  %script{src="js/jquery.notifica.min.js",type="text/javascript"}
  -if(ViewData.ContainsKey("scripts"))
    -foreach(string script in ViewData["scripts"] as List<string>)
      %script{src=string.Format("js/{0}",script),type="text/javascript"}
